package tgc.edu.ljc.bookmanage.web.form;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import tgc.edu.ljc.bookmanage.custom.CommonForm;
import tgc.edu.ljc.bookmanage.entity.TbClass;

public class StudentForm implements CommonForm{
	private Integer id;
	private String username;
	private String name;
	private String password;
	private String sex;
	private String job;
	private Date born;
	private TbClass tbClass;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getJob() {
		return job;
	}
	public void setJob(String job) {
		this.job = job;
	}
	
	@DateTimeFormat(pattern="yyyy-MM-dd")
	public Date getBorn() {
		return born;
	}
	public void setBorn(Date born) {
		this.born = born;
	}
	public TbClass getTbClass() {
		return tbClass;
	}
	public void setTbClass(TbClass tbClass) {
		this.tbClass = tbClass;
	}
	

}
